﻿using System;
using System.Collections.Generic;

namespace Gmantis.Controls.DataGrid
{
    public class DataGridSelectionChangedEventArgs : EventArgs
    {
        // Methods
        internal DataGridSelectionChangedEventArgs(DataGridModel model, List<DataGridCellsRange> addedRanges, List<DataGridCellsRange> removedRanges, bool isReadOnly)
        {
            this.AddedRanges = new DataGridCellsRangeCollection(model, addedRanges, isReadOnly);
            this.RemovedRanges = new DataGridCellsRangeCollection(model, removedRanges, isReadOnly);
        }

        // Properties
        public DataGridCellsRangeCollection AddedRanges { get; private set; }

        public DataGridCellsRangeCollection RemovedRanges { get; private set; }
    }
}
